import re
text = 'UPPER PYTHON, lower python, Mixed Python'
# IGNORECASE:设置忽略大小写
print(re.findall('python', text, flags=re.IGNORECASE))
